import request from '@/utils/request'

// 查询提现订单列表
export function listWithdrawalOrder(query) {
  return request({
    url: '/withdrawal/withdrawalOrder/list',
    method: 'get',
    params: query
  })
}

// 查询提现订单详细
export function getWithdrawalOrder(id) {
  return request({
    url: '/withdrawal/withdrawalOrder/' + id,
    method: 'get'
  })
}

// 新增提现订单
export function addWithdrawalOrder(data) {
  return request({
    url: '/withdrawal/withdrawalOrder',
    method: 'post',
    data: data
  })
}

// 修改提现订单
export function updateWithdrawalOrder(data) {
  return request({
    url: '/withdrawal/withdrawalOrder',
    method: 'put',
    data: data
  })
}

// 删除提现订单
export function delWithdrawalOrder(id) {
  return request({
    url: '/withdrawal/withdrawalOrder/' + id,
    method: 'delete'
  })
}
